A memory slot in a memory resource. More...
Public Member Functions | |
ShaderMemorySlot () | |
virtual | ~ShaderMemorySlot () |
const char * | getSlotType () const |
virtual const char * | getDataTypeAsString () const =0 |
virtual void | exportClassToTree (nkExport::Node *rootNode) override |
![]() | |
Exportable () | |
virtual | ~Exportable () |
virtual void | importClassFromTree (Node *rootNode)=0 |
A memory slot in a memory resource.
Conceptually, a memory buffer is made of slots filling information they are made for. For instance, a constant buffer will be able to receive pass slots, and each will feed a given variable in the buffer (view matrix, projection matrix...).
nkGraphics::ShaderMemorySlot::ShaderMemorySlot | ( | ) |
Constructor.
|
virtual |
Destructor.
const char* nkGraphics::ShaderMemorySlot::getSlotType | ( | ) | const |
|
pure virtual |
|
overridevirtual |
Basic exporting capabilities.
rootNode | The tree to export to. |
Implements nkExport::Exportable.
Reimplemented in nkGraphics::ShaderPassMemorySlot, and nkGraphics::ShaderInstanceMemorySlot.